package com.chixing.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;

public interface IMinioService {
    //上传文件到Minio
    String uploadFile(MultipartFile file)throws Exception;
    //获取文件临时访问URL
    String getFileUrl(String objectName,int expiry)throws Exception;
    //下载文件
    InputStream downloadFile(String objectName)throws Exception;
    //删除文件
    void deleteFile(String objectName)throws Exception;
}
